<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      lang="en" class="no-js">
    <h:head>
        <title>SGH</title>       
    </h:head>
    <h:body style="text-align: center">       
        <h:outputStylesheet library="css" name="demo.css" />
        <h:outputStylesheet library="css" name="style.css" />         

        <div class="container">
            <!-- Codrops top bar -->
            <div class="codrops-top">

                <div class="clr"></div>
            </div><!--/ Codrops top bar -->            
            <section>				
                <div id="container_demo" >

                    <a class="hiddenanchor" id="toregister"></a>
                    <a class="hiddenanchor" id="tologin"></a>
                    <div id="wrapper">
                        <div id="login" class="animate form">
                            <form  id="login1" method="post" action="#{request.contextPath}/j_spring_security_check" autocomplete="on"> 
                                <h1 style="color: #999;"> SGBC - Login</h1> 
                                <p> 
                                    <label for="username" class="uname" data-icon="M" > Matricula </label>
                                    <input id="username" name="j_username" required="required" type="text" placeholder="Matricula"/>
                                </p>
                                <p> 
                                    <label for="password" class="youpasswd" data-icon="S"> Senha </label>
                                    <input id="password" name="j_password" required="required" type="password" placeholder="Senha" /> 
                                </p>
                              
                                <p class="login button"> 
                                    <input type="submit" value="Login" /> 
                                </p>
                                <p class="change_link">
                                    <h:panelGroup rendered="#{!empty param.login_erro}">
                                        <span style="color: red">Erro ao efetuar o login</span><br />
                                        Motivo: #{SPRING_SECURITY_LAST_EXCEPTION.message}
                                    </h:panelGroup>
                                </p>
                            </form>
                        </div>  
                    </div>
                </div>  
            </section>
        </div>

    </h:body>
</html>

